package com.adrian.controller;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: Adrian
 * @Date: 2020/3/19 21:25
 * @Description:
 */

@Controller
@Scope("prototype")
public class CommController {

    @RequestMapping("/page_{page}")
    public String toPage(@PathVariable("page") String page) {
        return page;
    }
}
